package dayOOP0714;

public class Test7 {
    public static void main(String[] args) {
        Cat  h=new Cat("黑猫");

        Cat  b=new Cat("白猫");
        b.color=h.color;

        Cat  hua=new Cat("花猫");
        System.out.println(b.color);
    }
}


class  Cat{
    String color;
    Cat(String c){
        color=c;
    }
}
